//
//  WBPictureCell.swift
//  sinaWeibo
//
//  Created by 吴熠 on 16/11/17.
//  Copyright © 2016年 吴熠. All rights reserved.
//

import UIKit

class WBPictureCell: UICollectionViewCell {

    @IBOutlet weak var gif: UIImageView!
    
    @IBOutlet weak var imageView: UIImageView!
    
    var pictureInfo : WBPictureInfo?{
        didSet{
//            let url = URL(string: pictureInfo?.thumbnail_pic ?? "")
            
            //设置显示图片
            imageView .sd_setImage(with: pictureInfo?.imageURL)
            if !(pictureInfo!.thumbnail_pic!.hasSuffix(".gif")){
                self.gif.isHidden = true
            }
        }
        
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        
    }

}
